package com.yz.crm.company.service;

import com.yz.crm.db.model.BaseCompany;

/**
 * Created by DOVE on 2017/5/15 0015.
 */
public interface CompanyService {
	
    public boolean add(BaseCompany company) throws Exception;

    public BaseCompany get(String id);
    
    public BaseCompany getByUsername(String username, String password);

    /**
     * 验证用户名是否已经存在
     * @param username
     * @return
     * @throws Exception
     */
    public BaseCompany getByUsername(String username) throws Exception;
    public BaseCompany getByName(String name) throws Exception;
    public BaseCompany getByMail(String mail) throws Exception;
    public BaseCompany getPhoneNo(String phoneNo) throws Exception;

}
